package com.jianglin.service;

import com.github.pagehelper.PageInfo;
import com.jianglin.model.Userinfo;

import java.util.List;

public interface IUserinfoService  {
    List<Userinfo> findListByPage(Integer page, Integer pageCount, Userinfo condition);
    PageInfo<Userinfo> findUserinfoAll(int page, int pageSize, Userinfo userinfo);
    int add(Userinfo userinfo);
    int delete(Long id);
    int updateData(Userinfo userinfo);
    Userinfo findById(Long id);
    Userinfo queryUserByNameAndPwd(Userinfo userinfo);
    void deleteUserByUsername(String username);
    Userinfo findUserByName(String username);
}
